include cpp.mak
# -pedantic  -pedantic-errors
OPT := -ansi  -std=c++11 \
    -W -Wall -Wno-unused-parameter  -pthread \
	-fPIC -Wno-variadic-macros -DMS_LITTLE_ENDIAN  
	
# -L/usr/local/lib 
OPTION := $(OPT)  \
	-lHiUDPSocket -lHiRTPDecoder -lgtest -lgtest_main -luv \
	-lHiRTPCommon -lHiRTPParser -lHiUDPSocket -lHiRTPCodec  \
	-lHiRTPPic \
	-lavcodec -lswscale -lswresample -lavutil -lx264 -lvpx \
	-liconv  -lopus -lm -lz  \
	-Iinclude/gtest -I/usr/include  -I../include/common   -I../include -I./include \
	-L../libs/common -L../libs/common/ffmpeg -L../libs -L/usr/lib \
	-g
	
EXECUTABLE  :=  libHiApp.so

.cpp.o:
	g++ -c $< $(OPTION)

all: clean $(CPP_SOURCE)
	g++ -shared -Wall -g -w -o $(EXECUTABLE) *.o $(OPTION) -D_GNU_SOURCE 

clean:
	rm -f  $(EXECUTABLE) *.o

